package com.xjy.ftpmanagment.util;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.ServletActionContext;


@SuppressWarnings("all")
public class SessionUtil {
	public static Map getSession(){
		return(Map)ServletActionContext.getContext().getSession();
	}
	public static void sessionClear(){
		ServletActionContext.getContext().getSession().clear();
	}
	public static HttpServletResponse getHttpServletResponse(){
		return ServletActionContext.getResponse();
	}
	public static HttpServletRequest getHttpServletRequest(){
		return ServletActionContext.getRequest();
	}
}
